package com.zkyc.framework.website.client;

import com.zkyc.framework.common.constant.Constant;
import com.zkyc.framework.common.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author bing.bai
 * @create 2022/6/6
 */
@Service
@FeignClient(value = Constant.SERVICE_ALGORITHM, contextId = "algorithmService", fallback = AlgorithmServiceFallBack.class)
@RequestMapping("word")
public interface AlgorithmClient {

    @PostMapping("/chineseSegment")
    ResultVO<?> chineseSegment(@RequestBody String para);
}
